package cn.icatw.gulimall.order.constant;

/**
 * mq常数
 *
 * @author icatw
 * @date 2022/3/29
 * @email 762188827@qq.com
 * @apiNote
 */
public class MqConstant {
    public static class Exchange {
        public static final String ORDER_EVENT_EXCHANGE = "order-event-exchange";
    }

    public static class Queue {
        public static final String ORDER_DELAY_QUEUE = "order.delay.queue";
        public static final String ORDER_RELEASE_QUEUE = "order.release.order.queue";
        public static final String STOCK_RELEASE_QUEUE = "stock.release.stock.queue";

    }

    public static class RouteKey {
        public static final String DEAD_LETTER_ROUTING_KEY = "order.release.order";
        public static final String ORDER_CREATE_BINDING_ROUTING_KEY = "order.create.order";
        public static final String ORDER_RELEASE_BINDING_ROUTING_KEY = "order.release.order";
        public static final String ORDER_RELEASE_OTHER_BINDING_ROUTING_KEY = "order.release.order.#";
    }

    //public static final String stockReleaseStockQueue = "stock.release.stock.queue";
    //public static final String STOCK_EVENT_EXCHANGE = "stock-event-exchange";
    //public static final String STOCK_EVENT_EXCHANGE = "stock-event-exchange";

}
